package Event.daliy;

import Creature.Player;
import Event.Story;

public class Eat extends Story {
    public Eat(Player player) {
        super(player);
        happenText = "看看吃什么吧";
        options=new String[player.foods.size()];
        for (int i = 0; i < player.foods.size(); i++) {
            options[i]=player.foods.get(i).getName();
        }
    }
    @Override
    public void eventHappen(int option) {
        endText="吃饱饱，饥饿度回复了！";
        player.setHungry(player.getHungry()+player.foods.get(option).addhunger);
        player.foods.remove(player.foods.get(option));
    }
}
